require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../lib/flexible')
require('../font/iconfont.css')
require('../css/dynamic.less')
    //引入axios
const axios = require('axios')
    //weui-插件库
require('weui')
const weui = require('weui.js')

document.addEventListener('DOMContentLoaded', function() {
    /* 获取元素 */
    const opeRight = document.querySelector('.ope-right')
    const disc = document.querySelector('.disc')


    //flag写在外面，不然每次点击都重新赋值true
    let flag = true
    opeRight.addEventListener('click', function() {


        if (flag) {
            opeRight.style.backgroundColor = '#e2e2e3'
            disc.style.transform = 'translateX(.5469rem)'
            flag = false

        } else {
            opeRight.style.backgroundColor = '#00e165'
            disc.style.transform = 'translateX(0)'
            flag = true
        }

    })
})